package com.manong;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author 李茂鑫
 * @Date 2025/1/8 10:30
 * @Descripition
 */

@MapperScan("com.manong.dao")
@Slf4j
@SpringBootApplication
public class AuthorityApplication {
    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(AuthorityApplication.class, args);
        ConfigurableEnvironment environment = run.getEnvironment();
        Integer port = environment.getProperty("server.port", Integer.class);
        log.info("\n" +
                "-----------------------------------\n" +
                "Application Start\n" +
                "BaseUrl\t:\t http://localhost:{}" +
                "\n-----------------------------------",port);
    }
}
